import CONFIG from '@/config.json'
const APP__URL =
  process.env.NODE_ENV === 'production'
    ? `${CONFIG.APP__HOST__PRODUCT}:${CONFIG.APP__PORT__PRODUCT}`
    : `${CONFIG.APP__HOST__PROXY}:${CONFIG.APP__PORT__PROXY}`
const UPLOAD__IMAGE = `${CONFIG.APP__HOST__PROXY}:${CONFIG.APP__PORT__PROXY__IMAGE}`
const AVATAR = `${UPLOAD__IMAGE}/upload/avatar`
const IMAGES = `${UPLOAD__IMAGE}/upload/news`
export { APP__URL, UPLOAD__IMAGE, AVATAR, IMAGES }
